<?php
/**
 * Created by PhpStorm.
 * User: Weizehua
 * Date: 8/10/2016
 * Time: 12:01
 */
$f = fopen("a.php", "w");
if($f)
{
    fwrite($f, "data");
    fclose($f);
    echo 'succeed';
}
else
    echo 'failed';
